
package doublelinks;

import java.util.Random;

import jss2.DoubleLinkedSet;


public class DoubleLinkedSetTester {

	/**
	 * @param args
	 */
	public static void main (final String [] args) {

		System.out.printf ("Lab 4 written by %s%n", SingleLinkTester.YOURNAME);
		
		
		DoubleLinkedSet<Integer> ln = new DoubleLinkedSet<Integer>();
		
		
		Random rand = new Random();
		for(int i=0;i<10;i++){
			int temp = randomRange(rand,1,100);
			ln.add(temp);
		}
		
		ln.add(55);
		System.out.println(ln);
		System.out.println(ln.contains(55)+"\n");
		
		ln.removeRandom();
		ln.remove(55);
		System.out.println(ln);
		
	}
	private static int randomRange (final Random rand, final int min,
			final int max) {

		final int range = max - min + 1;
		return rand.nextInt (range) + min;
	}
}
